﻿@*

SystemInfo Widget:
显示业务系统信息
需要参数：BusinessSystem.ID
可选参数：SiteID
Model对象：

*@

@model Wicresoft.UnifyShow.Portal.BusinessAvailabilityInfo
@{
    Layout = "~/Views/Widget/Widget.cshtml";
    string imgUrl = Url.Action(Model.TargetAction, Model.TargetController) + Model.BuildRequestParam();
}

@section divselect{
    'div.div_Mask_sysava'
}

@section preloadcallback{


    $('img#div_Mask_sysava_img').load(function(){
            jQuery('div.div_Mask_sysava').hideLoading();
        }).error(function(){
            jQuery('div.div_Mask_sysava').hideLoading();
    });

    $('img#div_Mask_sysava_img').attr("src","@Html.Raw(imgUrl)");
    

}


@if (Model.LazyLoad)
{   
    <div class="div_Mask_sysava" id="sysava_holder" style="width:300px">
        <img src="" alt="hh" id="div_Mask_sysava_img" />
    </div>
}
else
{
    <div class="div_Mask_sysava" id="sysava_holder" style="width:300px">
        <span>In-Time load is not support for system availability model</span>
    </div>
}